import merchantConfig from "../merchants/merchant";

const runEnv = process.env.NODE_ENV === "development" ? "development" : "development";
const config = {
	development: {
		organizationUuid: "3285c781-2fb8-4fec-bed4-f50216190394", //组织UUID
		organizationGateway: "https://local.bntools.cn:8443", //组织网关地址
		merchantServicePlatformUrl: "https://gan_local.bntools.cn:8443", //商户服务平台地址
	},
	dev: {
		organizationUuid: "3285c781-2fb8-4fec-bed4-f50216190394", //组织UUID
		organizationGateway: "https://dev-gateway.bntools.cn:8443", //组织网关地址
		merchantServicePlatformUrl: "https://dev-merchant.bntools.cn:8443", //商户服务平台地址
	},
	testing: {
		organizationUuid: "2f2db129-c986-4247-8208-ec5f5f1227e7", //组织UUID
		organizationGateway: "https://test-gateway.bntools.cn:1443", //组织网关地址
		merchantServicePlatformUrl: "https://test-merchant.bntools.cn:2443", //商户服务平台地址
	},
	production: {
		organizationUuid: merchantConfig.organizationUuid, //组织UUID
		organizationGateway: merchantConfig.organizationGateway, //组织网关地址
		merchantServicePlatformUrl: "https://merchant.bntools.cn:2443", //商户服务平台地址
	},
};

export default {
	appid: merchantConfig.appid,
	merchantStores: merchantConfig.merchantStores,
	...config[runEnv],
};
